#ifndef MUSIC_PLAYER_H
#define MUSIC_PLAYER_H
#include "MusicEnum.h"

#include <SFML/Audio.hpp>
#include <SFML/Graphics.hpp>
#include <map>
#include "Level.h"
#include <list>
class MusicPlayer
{
public:
	MusicPlayer();
	
	void play(MusicEnum theme);
	void stop();
	void setPaused(bool paused);
	void setVolume(float volume);

	void playSound(MusicEnum sound);
	void stopSound(MusicEnum sound);
	void removeStoppedSounds();
	int getSoundDuration(MusicEnum sound);
private:
	

	sf::Music mMusic;
	std::map<MusicEnum, std::string> mFilenames;
	std::map<MusicEnum, sf::SoundBuffer> SoundBufferHolder;;
	float mVolume;
	
	std::list<sf::Sound> mSounds;
	
	
};
#endif